﻿using Inovout.Memberships.Models;
using Inovout.People.Models;

namespace Inovout.People.Memberships.Models
{
    partial class PersonMembership : Membership
    {
        public PersonMembership()
            : base(typeof(PersonMembership))
        {
        }
        private Person person;
        public virtual Person Person
        {
            get { return this.person; }
            set
            {
                this.person = value;
                base.Name = this.person.Name;
                base.Email = this.person.Email;
            }
        }
    }
}
